gui/tray: Make bottom buttons in user status selector smaller
authorClaudio Cambra <claudio.cambra@nextcloud.com>
Thu, 27 Feb 2025 09:32:53 +0000 (17:32 +0800)
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>
Mon, 3 Mar 2025 16:18:32 +0000 (16:18 +0000)
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
src/gui/UserStatusSelector.qml

index 8967bc2f9419aa23e930bfc1be409ee1d2456418..736dbe5a86a054a974512489f2751648df3b40a8 100644 (file)
@@ -268,23 +268,19 @@ ColumnLayout {
         Layout.alignment: Qt.AlignBottom
 
         Button {
-            // Prevent being squashed by the other buttons with larger text
-            Layout.minimumWidth: implicitWidth
-            Layout.fillHeight: true
             text: qsTr("Cancel")
             onClicked: finished()
         }
-        Button {
+        Item { // Spacing
             Layout.fillWidth: true
-            Layout.fillHeight: true
-            text: qsTr("Clear status message")
+        }
+        Button {
+            text: qsTr("Clear")
             onClicked: userStatusSelectorModel.clearUserStatus()
         }
         Button {
-            Layout.fillWidth: true
-            Layout.fillHeight: true
             focusPolicy: Qt.StrongFocus
-            text: qsTr("Set status message")
+            text: qsTr("Apply")
             onClicked: userStatusSelectorModel.setUserStatus()
         }
     }